<%@ include file="/common/header.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<link type="text/css" rel="stylesheet"
      href="<common:webRoot/>/resources/business/common/style/commonStyle.css?v=${sysversion}">
<style>

    .sc-base-line div {
        float: left;
    }

    .sc-base-line > div span {
        float: left;
    }

    .date-picker-cont {
        width: 200px;
    }

    .sc-base-line .date-picker-cont input {
        max-width: 97%;
    }

</style>
<body ng-init="XH='${XH }'; ;XH_TEMP ='${XH_TEMP }'; ">
<div class="container-full" ng-controller="relevanceconfigController">
    <div class="row">
        <div class="col-md-12 centerContain">
            <div class="edit-header">
                <div class="col-xs-4 edit-title">
                    <i class="iocn"></i> <i>编辑</i>
                </div>
                <div class="col-xs-8 edit-btn-box">
                    <button ng-show="!readonly" type="button" class="btn btn-default btn-sm"
                            ng-click="saveRelevanceConfig()">保 存
                    </button>
                </div>
            </div>
            <div class="edit-body">
                <form id="myVaildate" class="form-horizontal" name="validateForm">
                    <div class="edit-mod">
                        <div class="mod-body">
                            <table class="table-form">
                                <colgroup>
                                    <col width="140px"/>
                                    <col width="*"/>
                                    <col width="140px"/>
                                    <col width="*"/>
                                </colgroup>
                                <tbody>

                                <tr>
                                    <th> 业务类型名称：</th>
                                    <td>
                                        <input ng-model="relevanceconfig.YWMC" type="text"
                                               class="form-control easyui-validatebox" placeholder="输入业务类型名称："
                                               data-options="validType:'length[0,25]', tipPosition:'bottom'"/>
                                    </td>
                                    <th> 类型名称代码：</th>
                                    <td>
                                        <input ng-model="relevanceconfig.YWLXDM" type="text"
                                               class="form-control easyui-validatebox" placeholder="输入业务类型& #40;关联类型："
                                               data-options="validType:'length[0,25]', tipPosition:'bottom'"/>

                                    </td>
                                </tr>
                                <tr>
                                    <th> 是否有效：</th>
                                    <td>
                                        <codeset ng-multiple="false" title="是否有效" ng-type="radio" dmjbh="POWER_SFYX"
                                                 fdm="" ng-model="relevanceconfig.SFYX" getList="sfyxList"></codeset>
                                    </td>
                                    <%--<th> 类型名称代码：</th>--%>
                                    <%--<td>--%>
                                    <%--<input ng-model="relevanceconfig.YWLXDM" type="text"--%>
                                    <%--class="form-control easyui-validatebox" placeholder="输入业务类型& #40;关联类型："--%>
                                    <%--data-options="validType:'length[0,25]', tipPosition:'bottom'"/>--%>
                                    <%--</td>--%>
                                </tr>
                                <tr>
                                    <th><span style="color: red;">*</span>关联列表SQL：</th>
                                    <td colspan="3">
                                        <%--<input ng-model="relevanceconfig.GLLBSQL" type="text"--%>
                                        <%--class="form-control easyui-validatebox" placeholder="输入业务类型名称："--%>
                                        <%--data-options="validType:'length[0,25]', tipPosition:'bottom'"/>--%>
                                        <textarea ng-model="relevanceconfig.GLLBSQL" rows="7" style="width: 100%;"
                                                  placeholder=""
                                                  data-options="validType:'length[0,500]',required:'true', tipPosition:'bottom'"></textarea>
                                        <span style="color: #ff0000;">说明：SQL查询语句必须依次返回业务序号（YWXH）、业务类型名称（YWLXMC）、业务标题（YWBT）；例如查询组织机构（SELECT XH YWXH,'组织机构' YWLXMC,ZZJC YWBT FROM T_ADMIN_RMS_ZZJG）</span>

                                    </td>
                                </tr>
                                <tr>
                                    <th>备注：</th>
                                    <td colspan="3">
                                        <%--<input ng-model="relevanceconfig.GLLBSQL" type="text"--%>
                                        <%--class="form-control easyui-validatebox" placeholder="输入业务类型名称："--%>
                                        <%--data-options="validType:'length[0,25]', tipPosition:'bottom'"/>--%>
                                        <textarea ng-model="relevanceconfig.BZ" rows="7" style="width: 100%;"
                                                  placeholder=""
                                                  data-options="validType:'length[0,500]', tipPosition:'bottom'"></textarea>

                                    </td>
                                </tr>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>
<!-- 文件上传依赖 - 开始-->
<script type="text/javascript"
        src="<common:webRoot />/resources/platform/common/component/file/ng-slide-down.js?v=${sysversion}"></script>
<script type="text/javascript"
        src="<common:webRoot />/resources/platform/common/component/file/directive.js?v=${sysversion}"></script>
<!-- 文件上传依赖 - 结束 -->
<script type="text/javascript"
        src="<common:webRoot/>/resources/business/relevance/config/js/relevanceconfigedit.js?v=${sysversion}"></script>
</body>
<%@ include file="/common/footer.jsp" %>